import rests from './rest'
let rest = rests.rest;

export function register(params) {
    return rest.post('/api/user', params)
}

export function login(params) {
    return rest.post('/api/login', params)
}

export function saveGoods(params) {
    return rest.post('/api/saveGoods', params)
}

export function getGoods(params) {
    return rest.post('/api/getGoods', params)
}